Skip to content

feat: lru-cache and tiered-cache subpath exports - #1

Merged
lovrozagar merged 3 commits into
mainfrom
feat/cache
Nov 14, 2026
Merged

lovrozagar merged 3 commits into
mainfrom
feat/cache

Conversation

@lovrozagar

Copy link
Copy Markdown
Contributor

Minimal package setup, with each utility as its own subpath export so consumers import only what they use and the rest is tree-shaken.

  • @workerstack/utils/lru-cache: bounded LRU with soft/hard TTLs for stale-while-revalidate
  • @workerstack/utils/tiered-cache: isolate LRU → Workers KV → source, on a TTL preset, with request bypass and Cache-Status tracing
  • Tooling: tsc build to dist, vitest, oxlint, oxfmt, CI running all of them

lovrozagar and others added 3 commits November 14, 2026 18:50
Co-authored-by: davidzagar <anyrow.marketing@gmail.com>
Co-authored-by: lovrozagar <lovro.zagar5@gmail.com>
Co-authored-by: davidzagar <anyrow.marketing@gmail.com>
@lovrozagar
lovrozagar merged commit 883a3cf into main Nov 14, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants